/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.groupb.circus.impl_interfaces;

import java.io.File;
import java.util.logging.Level;
import java.util.logging.Logger;
import org.jivesoftware.smack.XMPPException;
import org.jivesoftware.smackx.filetransfer.FileTransferListener;
import org.jivesoftware.smackx.filetransfer.FileTransferRequest;
import org.jivesoftware.smackx.filetransfer.IncomingFileTransfer;




/**
 *
 * @author grupo b
 */
public class FTransferListener implements FileTransferListener{

    InstantMessage im;
    String path_Download = "C:/Users/a/Desktop/Imagen/Descargas";
    
    public FTransferListener(InstantMessage im) {
        this.im = im;
    }
    
    @Override
    public void fileTransferRequest(FileTransferRequest ftr) {
        
        
       im.ReceiveFile(ftr,ftr.getFileName());
        
       
        
    }
    
}
